package com.imaginaryphysics.www.simplepairs;


/**
 * Abstract marker class that an object you wish to Pair must extend. Provides functionality to cache and return an array of all Paired objects.
 *
 */

public abstract class Pairable{

	
	protected Pair<?>[] pairs;
	//protected Object[] partners;
	
	protected boolean is_set = false;
	
	
	protected Pairable(){
	}
	
	
	protected void set_set(Pair<?>[] pairs){
		this.pairs = pairs;
		
		is_set=true;
	}
	
	protected Pair<?>[] get_set(){
		return pairs;
	}
	
	protected boolean sets_created(){
		return is_set;
	}
	
	
	
	/*
	 * reset pairs clear pairs eat some pears etc
	 * if package is ever to be made elastic
	 */
}
